home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / scope / 051-075 / scopedisk53 / memmometer / mm.doc < prev    next >
Text File  |  1995-03-18  |  4KB  |  74 lines

  1. /* : ai=0 bk=0 ts=8 */
  2. /*
  3.  *   MemMometer - program hacked from Rokicki's WFrags more or less...
  4.  *   (in fact, a heck of a lot) in the style of Peter DaSilva's "Gauge."
  5.  *   The program opens a narrow window with the same dimensions as the
  6.  *   disk capacity gadget found in the top-level workbench window for
  7.  *   a floppy volume.  The sizing gadget is like the one in Gauge; to
  8.  *   resize the window, just click the left mouse button over the "E".
  9.  *   My bin copy of Gauge broke when I put a Michigan Insider in my A1000.
  10.  *   I did not have source for the Gauge program, so I conjured this one.
  11.  *
  12.  *   Note that in the display there's one memmometer for Chip (left-hand
  13.  *   column ), another for Slow Fast mem (center column) and another for
  14.  *   Fast mem (right-hand column ).  These memmometers can be turned on or
  15.  *   off as desired by selecting "NONE" or the various items in the Size
  16.  *   menus.  Parts of several FD programs have been used to make MemMometer.
  17.  *   Menus, for instance, are a la VT100 (Wecker, et al).  As with the
  18.  *   VT100 program, MemMometer has preset variables.  However, the program
  19.  *   does not presently contain a script file reader or an AREXX interface
  20.  *   with which to automatically set the variables.  Maybe this will
  21.  *   happen in a future rev (volunteers?).
  22.  *
  23.  *   FRAGS mode:
  24.  *   The 'mometers display a frequently-updated window indicating the extent
  25.  *   of memory fragmentation and free memory, thus showing the sizes of the
  26.  *   largest available chunks.  Black is unallocated, blue is partially
  27.  *   framented, red-orange is fully allocated.  It takes a while after
  28.  *   startup to settle out and display the upper fast mem, so be patient...
  29.  *   It's useful for finding out why those large programs won't load.  Also
  30.  *   useful during development to see what impact your application is having
  31.  *   on memory fragmentation.
  32.  *
  33.  *   WARPS mode:
  34.  *   The 'mometer displays any change that it sees in memory, BUT this mode
  35.  *   only works sensibly when JUST ONE memory size selection is active (set
  36.  *   others to "NONE").  Black areas are unchanged sections of memory, blue
  37.  *   areas are sections with zeroed long words in them, and red-orange areas
  38.  *   are sections containing recently changed long words.  Given that you
  39.  *   may have two areas of memory active in the compare, though, it is
  40.  *   possible to set it up (by careful planning w.r.t. the ways of AmigaDOS
  41.  *   memory management) so that something double buffered between CHIP and
  42.  *   RAM can be compared using this "mis-feature."  If you can load an area,
  43.  *   say, at a selectable boundary in RAM and its counterpart at the 256K
  44.  *   boundary in CHIP, (or similarly juggled arrangements in slow-fast and
  45.  *   fast RAM) you can use WARPS to judge the extent of differences between
  46.  *   two or perhaps even three similar fields.
  47.  *
  48.  *   To run, simply type
  49.  *
  50.  *      run MM3  or  click on the icon.
  51.  *
  52.  *   Then open the menu item selections and set them for your configuration.
  53.  *   Frags mode, 512K of CHIP @0, 0.5Meg of SF @C00000, and 2MB FAST mem are
  54.  *   the defaults.  Timing (Freq) is rather ragged, sorry about that...
  55.  *
  56.  *   That's all!  Enjoy this program.  Forget about the bugs.  :-)  mm3 uses
  57.  *   Amy's Forbid, Permit, and the notorious v1.2 Delay function - so you'll
  58.  *   probably get a track 40 error some day when you expect it least (I did).
  59.  *   It's good discipline for remembering to make backups... ::--))
  60.  *
  61.  *   The source to mm3 is freely distributable; the copy of Rokiki's WFrags
  62.  *   I was working with had no copyright or distribution restrictions, and
  63.  *   Wecker's VT100 is known to be in the public domain.  I add no further
  64.  *   restrictions to, nor accept any responsibilities for the use of the
  65.  *   codes herein, which are recommended for entertainment purposes only.
  66.  *   So get out your Manx 3.6a compiler and fix the bugs yourself, then
  67.  *   compile and link as described in the makefile.
  68.  *                                                              Good Luck.
  69.  *
  70.  *   Howard Hull  (The C Barbarian)*     hull@hao.ucar.edu
  71.  *
  72.  *               *( A matter of primitive language, not piracy...)
  73.  */
  74.